package com.wectrls.mapper;

import com.wectrls.entity.WecsUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface WecsUserMapper extends JpaRepository<WecsUser, String>, JpaSpecificationExecutor<WecsUser> {

    /**
     * 通过email查询
     *
     * @param email
     * @return
     */
    List<WecsUser> findByEmail(String email);

    /**
     * 组用户查询
     *
     * @param groupId
     * @return
     */
    List<WecsUser> findByUserGroupId(String groupId);
}
